//
//  UIImage+Conveniently.h
//  app
//
//  Created by 刘华舟 on 15/4/22.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Conveniently)

//重新设置图片尺寸大小
+(UIImage*) OriginImage:(UIImage *)image scaleToSize:(CGSize)size;
//重新设置图片尺寸大小，文件大小
+(UIImage*) OriginImage:(UIImage *)image scaleToSize:(CGSize)size fileToRatio:(CGFloat)ratio;

//重新设置图片尺寸大小
+(NSData*) dataOriginImage:(UIImage *)image scaleToSize:(CGSize)size;
//重新设置图片尺寸大小，文件大小
+(NSData*) dataOriginImage:(UIImage *)image scaleToSize:(CGSize)size fileToRatio:(CGFloat)ratio;

//旋转图片 设置方向
+ (UIImage *)image:(UIImage *)image rotation:(UIImageOrientation)orientation;

@end
